package it.enrico.mangamania.inventario.client.panel;

import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.Element;
import com.google.gwt.user.client.ui.FlowPanel;

public class GroupBoxPanel extends FlowPanel {

	private Element legend;

	public GroupBoxPanel() {
		Element fieldset = DOM.createFieldSet();
		this.legend = DOM.createLegend();
		DOM.appendChild(fieldset, legend);
		//setElement(fieldset);
	}

	public String getCaption() {
		return DOM.getInnerText(this.legend);
	}

	public void setCaption(String caption) {
		DOM.setInnerText(this.legend, caption);
	}
}
